<script>
const player = {
  level: 1, // 竞赛等级
  missCount: 0, // 错题数量
  isCanPrize: true, // 是否可抽奖 测试用
  openId: '',
  prizeCode: '',
  optionId: '',
  startFlag: false
}
const oauth2 = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd144053eb04e2e33&redirect_uri=http%3a%2f%2fgame.900show.com%2fyfsjb%2fwechat&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'
export default {
  player,
  oauth2,
  validate () {
    // oauth2
    if (this.player.openId === '') {
      window.location.href = oauth2
    }
  }
}
</script>
